locals {
  sfs_groups = {
    myapp_logs = {
      name       = "sfs-myapp-logs"
      size       = 1000
      share_type = "PERFORMANCE"
      vpc_id     = data.terraform_remote_state.vpc.outputs.vpc_info.id
      subnet_id  = data.terraform_remote_state.subnet.outputs.subnet_info["subnet-me212-dev-baidu_hub-db-sfs"].id
      vsg_id     = data.terraform_remote_state.vsg.outputs.vsg_info.vsg_sfs.vsg_id
      ava_zone   = "${var.REGION}a"
    }
  }
}
module "sfs_turbo" {
  source     = "../../../modules/sfs-turbo"
  for_each   = local.sfs_groups
  name       = each.value.name
  size       = each.value.size
  share_type = each.value.share_type
  vpc_id     = each.value.vpc_id
  subnet_id  = each.value.subnet_id
  vsg_id     = each.value.vsg_id
  ava_zone   = each.value.ava_zone
}